package com.ruoyi.workbench.mapper;

import com.ruoyi.workbench.domain.WbCountyUnit;
import com.ruoyi.workbench.domain.WbPhysicalUnit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface WbPhysicalUnitMapper {
    int deleteByPrimaryKey(Long id);

    int insert(WbPhysicalUnit record);

    int insertSelective(WbPhysicalUnit record);

    WbPhysicalUnit selectByPrimaryKey(Long id);

    List<WbPhysicalUnit> selectWbPhysicalUnit(WbPhysicalUnit wbPhysicalUnit);

    int updateByPrimaryKeySelective(WbPhysicalUnit record);

    int updateByPrimaryKey(WbPhysicalUnit record);

    /**
     * 查询农村单元
     *
     * @param wbCountyUnit wbCountyUnit
     * @return wbCountyUnit集合
     */
    List<WbCountyUnit> selectWbCountyUnit6(@Param("wbCountyUnit") WbCountyUnit wbCountyUnit);

    /**
     * 根据id查询子节点
     * @param id id
     * @return 子节点列表
     */
    List<WbPhysicalUnit> selectChildrenById(Long id);
}
